package com.foreverwin.mes.integration.soap.material.dto;

import com.foreverwin.mes.integration.enums.ResponseStatus;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * @author Ervin Chen
 * @date 2020/1/9 15:24
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "WebServiceResponse",propOrder = {
        "status",
        "message"
})
public class WebServiceResponse {

    @XmlElement( name = "status", type = ResponseStatus.class)
    private ResponseStatus status;

    @XmlElement( name = "message" )
    private String message;

    public ResponseStatus getStatus() {
        return status;
    }

    public void setStatus(ResponseStatus status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
